package com.ning.ems.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Ning 242741154@qq.com
 * @date 2020/4/28 10:09
 */
@Data
@ApiModel("DTO-PSI-GetList")
public class PSIListDto implements Serializable {
    @ApiModelProperty("快递员id")
    @NotNull(message = "快递员id不能为空")
    private Integer courier;

    @ApiModelProperty("年份")
    @NotNull(message = "年份不能为空")
    private Integer year;

    @ApiModelProperty("月份")
    @NotNull(message = "月份不能为空")
    private Integer month;

    @ApiModelProperty("页码")
    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码不能小于1")
    private Integer page;

    @ApiModelProperty("页面大小")
    @NotNull(message = "页面大小不能为空")
    @Min(value = 5, message = "每页条数不能小于5")
    @Max(value = 20, message = "每页条数不能大于20")
    private Integer pageSize;
}
